package com.william.jdbcplus.core.util.datameta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.LinkedList;
import java.util.List;

@Getter
@Setter
@Builder
@ApiModel("表信息")
public class TableMetaInfo {
    @ApiModelProperty(value = "表列信息列表")
    private List<TableMetaColumnInfo> columnList = new LinkedList<>();

    @ApiModelProperty(value = "主键信息列表")
    private List<TableMetaPkInfo> pkList = new LinkedList<>();

    @ApiModelProperty(value = "表索引信息列表")
    private List<TableMetaIndexInfo> indexList = new LinkedList<>();

    @ApiModelProperty(value = "表外键信息列表")
    private List<TableMetaFkInfo> fkList = new LinkedList<>();

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "表类型")
    private String tableType;

    @ApiModelProperty(value = "表备注")
    private String tableRemarks;
}
